package com.example.shengyin.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.sql.Timestamp;

/**
 * 应聘者对象 d_seeker
 *
 * @author ruoyi
 * @date 2023-08-03
 */
@Data
@Validated
@ApiModel("应聘者类")
public class Seeker {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ApiModelProperty("编号")
    private Long id;

    /**
     * 姓名
     */
    @NotNull(message = "名字不能为空")
    @ApiModelProperty("姓名")
    private String jname;

    /**
     * 提交时间
     */

    @ApiModelProperty("提交时间,前端不需要提交时间")
    private Timestamp posttime;

    /**
     * 简历附件地址
     */
    @ApiModelProperty("简历链接地址")
    private String resumeUrl;

    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    @Pattern(regexp = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$",message = "请输入正确的手机号！")
    private String phone;

    @ApiModelProperty("岗位id")
    private Integer jobid;

}
